<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
    <div id="app">
      <h2>{{title}}</h2>
      <input type="text" :value="title" ref="ipt" @input="change()">
      <hr >
      <h3>{{msg}}</h3>
      <input type="text" v-model="msg" />
    </div>
	</body>
  <script src="../vue.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript">
    new Vue({
      el:"#app",
      data:{
        title:"abc",
        msg:"qwe"
      },
      methods:{
        change(){
          this.title = this.$refs.ipt.value
        }
      }
    })
  </script>
</html>
